package com.jiyun.feign;

import com.jiyun.model.day11.Roll;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author mtt
 * @Date 2023/8/24 17：20
 **/
@FeignClient("day05-roll")
public interface FeignRoll
{
    //查询最热竞技
    @RequestMapping("/roll/findDesc")
    public List<Roll> findDesc();
    //-- 查竞赛所在培训人数
    @RequestMapping("/traineeRoll/findTrainee/{id}")
    public Integer findTrainee(@PathVariable("id") Integer id);
}
